package ru.edu.usu.cs.bubbles.engine.box2d.colliders;

import ru.edu.usu.cs.bubbles.engine.Bubble;
import ru.edu.usu.cs.bubbles.engine.GameEntity;
import ru.edu.usu.cs.bubbles.engine.GameWorld;

import com.badlogic.gdx.physics.box2d.Fixture;

public class Box2dFishCollider extends Collider {

	public Box2dFishCollider(GameWorld world) {
		super(world);
	}

	@Override
	public void processCollision(Fixture myFixture, Fixture otherFixture) {
		if(otherFixture.getGameEntity() instanceof Bubble) {
			world.destroyEntity((GameEntity) otherFixture.getGameEntity());
		}
	}

}
